import java.util.LinkedList;
import java.util.Queue;

public class ChooseAdditionalItem extends AdditionalItems {
	ItemSet itemSet; 
	
	public ChooseAdditionalItem(ItemSet itemSet) {
		this.itemSet = itemSet;
	}
	
	public Queue<String> chooseItems(int nextItem) {
		
		Queue<String> additionalItems = new LinkedList<String>();
		
		for(int i = nextItem; i < itemSet.getSize(); ++i) {
			Queue<String> items = itemSet.chooseItems(i+1);
			
			for(String item : items)
				additionalItems.add(i + " " + item);
		}
			
		return additionalItems;
	}
	
	public int getSize() {
		return itemSet.getSize();
	}
}
